<?php

namespace app\model;

use think\Model;
use think\model\concern\SoftDelete;

class TravelCoupon extends Model
{
    use SoftDelete;
    // Define the table name
    protected $name = 'travel_coupons';
    public $timestamps = false;
    protected $deleteTime = 'deleted_at';

    //   `coupon_type` tinyint(4) NOT NULL COMMENT '优惠券类型: 1=平台券, 2=商家券',
    public $couponType = [
        1 => '平台券',
        2 => '商家券',
    ];

    //   `usage_type` varchar(60) NOT NULL COMMENT '使用场景: 1线上购票, 2线下扫码, 3线上商城',
    public $usageType = [
        1 => '线上购票',
        2 => '线下扫码',
        3 => '线上商城',
    ];
    // `discount_type` tinyint(4) NOT NULL COMMENT '优惠类型: 1=满减, 2=直减, 3=折扣',
    public $discountType = [
        1 => '满减',
        2 => '直减',
        3 => '折扣',
    ];
    //  `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '状态: 1=未开始, 2=进行中, 3=已结束, 4=已作废',
    public $status = [
        1 => '未开始',
        2 => '进行中',
        3 => '已结束',
        4 => '已作废',
    ];

}
